{% extends 'layout/basic.html' %}
{% load static %}
<!-- 设置CSS -->
{% block css %}
    <link rel="stylesheet" href="{% static 'app01/css/register.css' %}">
{% endblock %}
{% block content %}
    <div class="account">
        <div class="title">用户登录</div>
        <form id="form-login" novalidate method="post">
            {% csrf_token %}
            {% for field in form %}
                <label for="{{ field.id_for_label }}">{{ field.label }}</label>
                {{ field }}
                <span style="color: red;position:absolute; font-size: 15px;"
                      class="error-msg">{{ field.errors.0 }}</span>
                <br>
            {% endfor %}
            <div class="text-center">
                <button id="btn_login_" type="submit" style="width: 30%"
                        class="btn btn-sm btn-primary mt-4 bg-gradient">登 录
                </button>
            </div>
        </form>
    </div>

{% endblock %}